.class Lcom/uucun/adsdk/view/a;
.super Landroid/webkit/WebViewClient;


# instance fields
.field final synthetic a:Lcom/uucun/adsdk/view/OfferwallView;


# direct methods
.method constructor <init>(Lcom/uucun/adsdk/view/OfferwallView;)V
    .locals 0

    iput-object p1, p0, Lcom/uucun/adsdk/view/a;->a:Lcom/uucun/adsdk/view/OfferwallView;

    invoke-direct {p0}, Landroid/webkit/WebViewClient;-><init>()V

    return-void
.end method


# virtual methods
.method public onPageFinished(Landroid/webkit/WebView;Ljava/lang/String;)V
    .locals 5

    const-wide/16 v3, -0x1

    invoke-super {p0, p1, p2}, Landroid/webkit/WebViewClient;->onPageFinished(Landroid/webkit/WebView;Ljava/lang/String;)V

    new-instance v0, Lcom/uucun/adsdk/view/k;

    invoke-direct {v0, p0}, Lcom/uucun/adsdk/view/k;-><init>(Lcom/uucun/adsdk/view/a;)V

    invoke-virtual {v0}, Lcom/uucun/adsdk/view/k;->start()V

    new-instance v0, Landroid/os/Message;

    invoke-direct {v0}, Landroid/os/Message;-><init>()V

    const/4 v1, 0x1

    iput v1, v0, Landroid/os/Message;->what:I

    iget-object v1, p0, Lcom/uucun/adsdk/view/a;->a:Lcom/uucun/adsdk/view/OfferwallView;

    invoke-static {v1}, Lcom/uucun/adsdk/view/OfferwallView;->b(Lcom/uucun/adsdk/view/OfferwallView;)Landroid/os/Handler;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    iget-object v0, p0, Lcom/uucun/adsdk/view/a;->a:Lcom/uucun/adsdk/view/OfferwallView;

    invoke-static {v0}, Lcom/uucun/adsdk/view/OfferwallView;->c(Lcom/uucun/adsdk/view/OfferwallView;)J

    move-result-wide v0

    cmp-long v0, v0, v3

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Lcom/uucun/adsdk/view/a;->a:Lcom/uucun/adsdk/view/OfferwallView;

    invoke-static {v1}, Lcom/uucun/adsdk/view/OfferwallView;->c(Lcom/uucun/adsdk/view/OfferwallView;)J

    move-result-wide v1

    invoke-static {v1, v2}, Lcom/uucun/adsdk/b/h;->a(J)F

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, " s"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/uucun/adsdk/view/a;->a:Lcom/uucun/adsdk/view/OfferwallView;

    invoke-static {v1, v3, v4}, Lcom/uucun/adsdk/view/OfferwallView;->a(Lcom/uucun/adsdk/view/OfferwallView;J)J

    sget-object v1, Lcom/uucun/adsdk/view/OfferwallView;->a:Ljava/lang/String;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "Offerwall Connection Time:"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v2, " "

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v1, v0}, Lcom/uucun/adsdk/b/h;->b(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0
.end method

.method public onReceivedError(Landroid/webkit/WebView;ILjava/lang/String;Ljava/lang/String;)V
    .locals 4

    if-gez p2, :cond_0

    invoke-static {}, Lcom/uucun/adsdk/b/k;->a()Lcom/uucun/adsdk/b/k;

    move-result-object v0

    invoke-virtual {v0}, Lcom/uucun/adsdk/b/k;->b()Z

    move-result v0

    if-nez v0, :cond_1

    invoke-static {}, Lcom/uucun/adsdk/b/k;->a()Lcom/uucun/adsdk/b/k;

    move-result-object v0

    invoke-virtual {p1}, Landroid/webkit/WebView;->getUrl()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/uucun/adsdk/b/k;->a(Ljava/lang/String;)Ljava/lang/String;

    iget-object v0, p0, Lcom/uucun/adsdk/view/a;->a:Lcom/uucun/adsdk/view/OfferwallView;

    invoke-virtual {v0}, Lcom/uucun/adsdk/view/OfferwallView;->b()V

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/uucun/adsdk/view/a;->a:Lcom/uucun/adsdk/view/OfferwallView;

    const-string v1, "<html><meta charset=\"UTF-8\" /><center>\u8f7d\u5165\u9875\u9762\u51fa\u9519,\u8bf7\u91cd\u8bd5.</center></html>"

    const-string v2, "text/html"

    const-string v3, "utf-8"

    invoke-virtual {v0, v1, v2, v3}, Lcom/uucun/adsdk/view/OfferwallView;->loadData(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0
.end method
